{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<div class="mb-3">
  <h2>{{ i18n "related_article" }}</h2>
  <ul class="related">
  {{ range . }}
    <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
  {{ end }}
  </ul>
</div>
{{ end }}
